/************************************************
*@brief:		This class helps drawing images inside the Visual Component.
*				I decided to write this class because the default image loading class in LDF
*				has a runtime problem. Sorry Fabricio, but it's not working well. This class just 
*				let Devil handling the image for openGL
*@author:		K. TANGAO <futurchercheur1@gmail.com>
*@file:			formatingClass.h
*@date:			27/11/2008
*@Version:		1.0
*************************************************/




#ifndef IMAGE_DRAWING_STRATEGY
#define IMAGE_DRAWING_STRATEGY

#include <string>
#include "LDF/VisComponentStrategy.h"

class  ImageLoading;

class imageDrawingStrategy : public VisComponentStrategy
{
	public:
		imageDrawingStrategy(std::string imageLocation);
		~imageDrawingStrategy();

	protected:
		// functions from VisComponentStrategy
		void draw(const std::vector<unsigned long>& selectedIds);
		void drawForPicking();

		//the OpenGL texture number for the image used
		unsigned int imageTex;

		//the image Object from imageLoading class
		ImageLoading * imageObject;
};


#endif              //IMAGE_DRAWING_STRATEGY
